/**
 * @project_name staff_vehicle
 * @package_name com.ssh.ser.askfl
 * @desc TODO
 * @param
 * @author jack
 * @date 2013-4-23
 * @time 下午4:53:14
 */
package com.ssh.ser.common;

import java.util.List;

import com.ssh.entity.AskForleave;
import com.ssh.model.pdata.AskForLeaveMData;

/**
 * @author jack
 *
 */
public interface AskForLeaveSerI {
	/*员工请假查看*/
	public AskForleave viewAskFL(String askFLId);
	/*员工请假查看*/
	public List<AskForleave> viewAskFLList(String staffId);
	/*员工请假*/
	public AskForleave addAskFL(AskForleave askFL);
	/*员工返回*/
	public AskForleave IAmBack(AskForleave askFL);
	/*员工离开*/
	public AskForleave IGonaLeave(AskForleave askFL);
    /*返回员工请假所有相关信息*/
	public List<AskForLeaveMData> viewAllAskForLeave();
	/*返回某一员工请假所有相关信息*/
	public List<AskForLeaveMData> viewOneAskForLeave(String idWhoWantoAskForLeave,int state);

	/*同意员工请假*/
	public AskForleave agreeAskForLeave(AskForleave askForleave);
	/*不同意员工请假*/
	public AskForleave disAgreeAskForLeave(AskForleave askForleave);
	/**
	 * @param state
	 * @return 按状态查看请假员工信息
	 */
	public List<AskForLeaveMData> viewAllAskForLeave(int state);
	/**
	 * @param id
	 * @return
	 * @desc 按主键Id查询申请请假信息
	 */
	public AskForleave viewAskForLeaveById(int id);
}
